const routes = [{
    path: '/login',
    name: 'login',
    meta: '登录',
    component: r => require.ensure([], () => r(require('project/admin/views/login')), 'login')
  }, {
    path: '/register',
    name: 'register',
    meta: '注册',
    component: r => require.ensure([], () => r(require('project/admin/views/register')), 'register')
  },

  // {
  //   path: '/',
  //   name: '/',
  //   meta: '首页',
  //   component: r => require.ensure([], () => r(require('project/admin/views/index/index')), 'index'),
    // redirect: {
    //   name: 'adminInfo'
    // },
    // children: [{
    //   path: 'adminInfo',
    //   name: 'adminInfo',
    //   meta: '管理员信息',
    //   component: r => require.ensure([], () => r(require('project/admin/views/admin-info/admin-info')), 'admin-info'),
    // }]
    // redirect: {
    //   name: 'platform'
    // },
    //   children: [{
    //     path: 'platform',
    //     name: 'platform',
    //     meta: '平台奖品',
    //     component: r => require.ensure([], () => r(require('../views/prize-management/platform')), 'platform')

    //   }, {
    //     path: 'selfBuilt',
    //     name: 'selfBuilt',
    //     meta: '自建奖品',
    //     component: r => require.ensure([], () => r(require('../views/prize-management/self-built')), 'selfBuilt')

    //   }]
    // },
    //{
    //   path: 'system',
    //   name: 'system',
    //   meta: '系统管理',
    //   component: r => require.ensure([], () => r(require('../views/system')), 'system'),
    //   redirect: {
    //     name: 'menuList'
    //   },
    //   children: [{
    //     path: 'menuList',
    //     name: 'menuList',
    //     meta: '菜单列表',
    //     component: r => require.ensure([], () => r(require('../views/system/menu/menu-list')), 'system-menuList'),

    //   }
    // ]
    // },


    // ]

  // }
]

export default routes
